package com.qfedu.menu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qfedu.menu.mapper.MenuMapper;
import com.qfedu.menu.pojo.Menu;
import com.qfedu.menu.service.MenuService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Transactional(readOnly = true)
    @Override
    public List<Menu> getUserMenus(String username) {
        return this.baseMapper.getUserMenus(username);
    }
}
